import request from '@/utils/request'

// 查询套餐列表
export function listMeal(query) {
  return request({
    url: '/order/meal/list',
    method: 'get',
    params: query
  })
}

// 查询套餐详细
export function getMeal(setMealId) {
  return request({
    url: '/order/meal/' + setMealId,
    method: 'get'
  })
}

// 新增套餐
export function addMeal(data) {
  return request({
    url: '/order/meal',
    method: 'post',
    data: data
  })
}

// 修改套餐
export function updateMeal(data) {
  return request({
    url: '/order/meal',
    method: 'put',
    data: data
  })
}

// 删除套餐
export function delMeal(setMealId) {
  return request({
    url: '/order/meal/' + setMealId,
    method: 'delete'
  })
}
